<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-username" disabled class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Userphone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-userphone" disabled class="form-control" name="row[userphone]" type="text" value="{$row.userphone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Age')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-age" disabled class="form-control" name="row[age]" type="number" value="{$row.age|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-gender" disabled class="form-control" name="row[gender]" type="text" value="{$row.gender|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Report_content')}:</label>
        <div class="col-xs-12 col-sm-8">
            {foreach $row['order_report'] as $key=>$info } 
            <table id="table" class="table table-striped table-bordered table-hover table-nowrap" width="100%">
                <thead>
                    <tr>
                        <th style="text-align: center; vertical-align: middle; " data-field="id">
                            <div class="th-inner ">项目名称</div>
                            <div class="fht-cell"></div>
                        </th>
                        <th style="text-align: center; vertical-align: middle; " data-field="order_goods_id">
                            <div class="th-inner ">检验结果</div>
                            <div class="fht-cell"></div>
                        </th>
                        <th style="text-align: center; vertical-align: middle; " data-field="user.nickname">
                            <div class="th-inner ">状态</div>
                            <div class="fht-cell"></div>
                        </th>
                        <th style="text-align: center; vertical-align: middle; " data-field="sole_id">
                            <div class="th-inner ">参考范围</div>
                            <div class="fht-cell"></div>
                        </th>
                    </tr>
                </thead>
                <tbody data-listidx="0">
                    {foreach $info['report_content']['data'] as $i=>$vo } 
                    <tr>
                        <td style="text-align: center; vertical-align: middle; ">{$vo['checkItem_name']}({$vo['checkItem_Code']})</td>
                        <td style="text-align: center; vertical-align: middle; ">{$vo.report_result} {$vo['Unit']}</td>
                        <td style="text-align: center; vertical-align: middle; ">
                            {if condition="$vo.status == 0"}
                            <span class="text-primary"><i class="fa fa-circle"></i> 正常</span>
                            {elseif condition="$vo.status == 1"}
                            <span class="text-danger"><i class="fa fa-circle"></i> 高</span>
                            {elseif condition="$vo.status == 2"}
                            <span class="text-warning"><i class="fa fa-circle"></i> 低</span>
                            {else}
                            {/if}
                        </td>
                        <td style="text-align: center; vertical-align: middle; ">
                            {$vo['ranges']} {$vo['Unit']}
                        </td>
                    </tr>
                    {/foreach}
                </tbody>
            </table>
            <a style="margin-bottom: 20px;" href="{:url('/order/order_report/download', ['ids'=>$info['id']], false, true)}" class="btn btn-primary btn-more" target="_blank" rel="noopener noreferrer">下载报告</a>
            {/foreach}
        </div>
    </div>
    <!-- <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div> -->
</form>